<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<style>
    @media screen {}
</style>
<div id="fullscreen" onclick="requestFullscreen()">
    Clicking this element should go fullscreen and not crash.
</div>
<script>
    test(() => {
        if (window.eventSender) {
            eventSender.mouseMoveTo(fullscreen.offsetLeft + 1, fullscreen.offsetTop + 1);
            eventSender.mouseDown();
            eventSender.mouseUp();
        }
    }, "Check that going fullscreen does not crash");
</script>
